package chapter7;

public class RuntimeTest {
    public static void main(String[] args) {
        Runtime rt = Runtime.getRuntime();
        System.out.println("处理器核心数量:" + rt.availableProcessors());
        System.out.println("空闲内存:" + rt.freeMemory());
        System.out.println("总内存:" + rt.totalMemory());
        System.out.println("可用最大内存" + rt.maxMemory());
    }
}
